package com.infore.dataAudit.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.infore.dataAudit.entity.TDataAuditDetail;

/**
 * 数据审核实体表操作接口
 * @author cys
 *
 */
public interface ITDataAuditDetailRepository extends JpaRepository<TDataAuditDetail, String>,
                    JpaSpecificationExecutor<TDataAuditDetail>{
    
    /**
     * 查询三级审核不是有效的记录
     * 
     * @author 蔡永顺
     * @return List<TDataAuditDetail>
     * @param taskName
     * @param flowId
     * @param status
     * @return
     * @date 2019年5月10日下午3:31:04
     */
    List<TDataAuditDetail> findByTaskNameAndDataAuditFlowInstanceIdAndAuditStatusNot(
            String taskName, String flowId, String status);
    
}
